import api from '@/common/api.js'

// 创建订单
const CreateMBOrder = async (data, success, fail, isShowLoading = true) => {
	return await api.Request({
		url: '/api/services/app/MBProductOrder/CreateMBOrder',
		data: data,
		isObj: true,
		isShowLoading: isShowLoading,
		abpSuccess: success,
		abpFail: fail,
		isEncrypt: false
	});
};

const GetMBOrderLst = async (data, success, fail, isShowLoading = true) => {
	return await api.Request({
		url: '/api/services/app/MBProductOrder/GetMBOrderLst',
		data: data,
		isObj: true,
		isShowLoading: isShowLoading,
		abpSuccess: success,
		abpFail: fail,
		isEncrypt: false
	});
};

const UpdateMBOrder = async (data, success, fail, isShowLoading = true) => {
	return await api.Request({
		url: '/api/services/app/MBProductOrder/UpdateMBOrder',
		data: data,
		isObj: true,
		isShowLoading: isShowLoading,
		abpSuccess: success,
		abpFail: fail,
		isEncrypt: false
	});
};

export default {
	CreateMBOrder,
	GetMBOrderLst,
	UpdateMBOrder
}
